#include <stdio.h>
#include <wiringPi.h>
#include <unistd.h>
//宏定义wpi引脚0用于蜂鸣器
#define BEEP 0

int main (void)
{
	//初始化wiringpi库
	wiringPiSetup();
	//设置io口为输出
	pinMode(BEEP,OUTPUT);

	digitalWrite (BEEP,LOW);//设置IO口输出low

	sleep(1);//1s

	digitalWrite (BEEP,HIGH);

	return 0;
}
